﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace VMExplorer.MemoryObjects
{
  /// <summary>
  /// Environment block
  /// </summary>
	class EnvironmentBlockObject : GenericMemoryObject
  {
    #region IMemoryObject overrides

    public override TabPage [] Tabs 
		{ 
			get 
			{
				TabPage tabEnvironment = new TabPage ("Environment");
				EnvironmentBlockTab ebt = new EnvironmentBlockTab (this);

				tabEnvironment.SuspendLayout ();
				ebt.SuspendLayout ();

				ebt.Dock = DockStyle.Fill;

				tabEnvironment.Controls.Add (ebt);
				tabEnvironment.Padding = new System.Windows.Forms.Padding (3);
				tabEnvironment.UseVisualStyleBackColor = true;

				ebt.ResumeLayout (false);
				tabEnvironment.ResumeLayout (false);

				return new TabPage [] { tabEnvironment };
			}
    }

    #endregion
    #region Construction

    public EnvironmentBlockObject (SafeProcessHandle hProcess, MemoryAddress baseAddress)
      : base (hProcess, baseAddress, "Environment block", RegionUsage.Process)
		{
    }

    #endregion
  }
}
